import Vue from 'vue'
import App from './App.vue'
import router from './routers'
import store from './store'
import _ from 'lodash'
import ElementUI from 'element-ui'
import filters from './filters'

import 'element-ui/lib/theme-chalk/index.css'
import './styles/app.less'

Vue.use(ElementUI, { size: 'small', zIndex: 3000 })
Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key])
})

Vue.prototype._ = _

Vue.config.productionTip = false

const vm = new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')

export default vm